package com.vslimit.dto;

import com.vslimit.util.FuniApplicationContext;
import org.springframework.jdbc.core.JdbcTemplate;

import java.io.Serializable;

/**
 * Created by IntelliJ IDEA.
 * User: vslimit
 * Date: 12-4-3
 * Time: 上午12:40
 * To change this template use File | Settings | File Templates.
 */
public class BasicDTO implements Serializable {

    private Integer id;
    private String version;

    public BasicDTO() {

    }

    public BasicDTO(Integer id) {
        this.id = id;
    }


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    private JdbcTemplate jdbcTemplate;

    public JdbcTemplate getJdbcTemplate() {
        return (JdbcTemplate) FuniApplicationContext.getBean("jdbcTemplate");
    }
}
